package com.sgb.zhaocai.view.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.sgb.zhaocai.BR;
import com.sgb.zhaocai.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class CompanyTabAdapter extends BaseRecycleAdapter<String> {
    public CompanyTabAdapter(Context context, List<String> datas) {
        super(context, R.layout.company_tab_items, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, String entity) {
        holder.setBinding(BR.viewModel, entity);
        //tv_name
        TextView tvName = holder.itemView.findViewById(R.id.tv_name);
        tvName.setText(entity);
    }
}
